package com.mx.zb.md.base.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.mx.zb.md.base.bo.User;

//对应的服务名，不区分大小写
@FeignClient("miaodao-base")
public interface HelloService {

	@RequestMapping("/hello")
	String hello(@RequestParam String name);
	
	@RequestMapping("/hello1")
    public User hello(@RequestHeader String name, @RequestHeader Integer age) ;
	
	@RequestMapping("/hello2")
    public String hello(@RequestBody User user);
}
